{extend name="base"}
{block name="title"}渠道版本记录{/block}
{block name="head"}
<style>
pre{line-height:15px;}
.toolbar .r-list label{color:#f00;}
</style>
{/block}
{block name="body"}
<body class="mainbody">
<form>
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i class="iconfont icon-up"></i><span>返回上一页</span></a>
  <a href="{:url('index/home')}" class="home"><i class="iconfont icon-home"></i><span>首页</span></a>
  <i class="arrow iconfont icon-arrow-right"></i>
  <span>渠道版本记录</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"><i class="iconfont icon-more"></i></a>
      <div class="l-list">
        <div class="menu-list">
          <div class="rule-single-select">
            <select name="channel" style="display:none">
              <option value="0">===所有渠道===</option>
              {volist name="CHANNELS" id="val"}
              <option value="{$key}"{eq name="channel" value="$key"} selected{/eq}>[{$key}]{$val.Name}</option>
              {/volist}
            </select>
          </div>
        </div>
      </div>
      <div class="r-list">
        <label>合计:{$info.D}</label>
        <label>今日:{$info.D0}</label>
        <label>昨天:{$info.D1}</label>
        <label>本周:{$info.D7}</label>
        <label>上周:{$info.D14}</label>
        <label>本月:{$info.D30}</label>
        <label>上月:{$info.D60}</label>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

<div class="table-container">
  <table border="0" cellspacing="0" cellpadding="0" class="border-table ltable">
    <thead>
      <tr>
        <th width="30">#</th>
        <th width="100">渠道</th>
        <th width="50">旧版本号</th>
        <th width="50">新版本号</th>
        <th width="100">提交时间</th>
        <th>更新说明</th>
      </tr>
    </thead>
    <tbody>
{empty name="list"}
      <tr><td colspan="6">Oh~暂无数据!</td></tr>
{else}
  {volist name="list" id="v"}
      <tr data-id="{$v.ID}">
        <td>{$v.ID}</td>
        <td>[{$v.Channel}]{$CHANNELS[$v.Channel]['Name'] ?? '--'}</td>
        <td>{$v.VOld}</td>
        <td>{$v.VNew}</td>
        <td>{$v.CreateTime}</td>
        <td><pre>{$v.Remark}</pre></td>
      </tr>
  {/volist}
{/empty}
    </tbody>
  </table>
</div>

<!--内容底部-->
<div class="page-footer"><div class="btn-wrap">{$list->render()}</div></div>
<!--/内容底部-->

</form>
</body>
{/block}